<?php
// +----------------------------------------------------------------------
// | ThinkCMF [ WE CAN DO IT MORE SIMPLE ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2017 http://www.thinkcmf.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: Dean <zxxjjforever@163.com>
// +----------------------------------------------------------------------
use think\Route;

Route::rule([
	'/'                 =>  'portal/index/join',
	'company'           =>  'portal/index/company',
	'/list/[:cate_id]'  =>  'portal/index/productlist',
	'/pdetail/:id'      =>  'portal/index/productdetail',
	'show'              =>  'portal/index/joinshow',
    'shop/[:id]'        =>  'portal/index/joindetail',
    'prospect'          =>  'portal/index/prospect',
    'advantage'         =>  'portal/index/advantage',
    'company'           =>  'portal/index/company',
    'news/[:id]'        =>  'portal/index/newsdetail',
    'news'              =>  'portal/index/news',
],'','GET',['ext'=>'html'],['id'=>'\d+','cate_id'=>'\d+']);

Route::post([
    '/message'  =>  'portal/index/message'
]);

if (file_exists(CMF_ROOT . "data/conf/route.php")) {
    $runtimeRoutes = include CMF_ROOT . "data/conf/route.php";
} else {
    $runtimeRoutes = [];
}

return $runtimeRoutes;